package model;

import java.io.Serializable;

public class Hall implements Serializable {
    private String id;
    private String name;
    private int rows;
    private int seatsPerRow;

    public Hall(String id, String name, int rows, int seatsPerRow) {
        this.id = id;
        this.name = name;
        this.rows = rows;
        this.seatsPerRow = seatsPerRow;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getRows() {
        return rows;
    }

    public int getSeatsPerRow() {
        return seatsPerRow;
    }

    public int getTotalSeats() {
        return rows * seatsPerRow;
    }

    @Override
    public String toString() {
        return "放映厅：" + name + "（" + rows + "排，每排" + seatsPerRow + "座）";
    }
} 